<?php
$ahed_facebook = ""; //address facbook  on site option
$ahed_twitter = ""; // address twitter
$ahed_phone = "";

$ahed_facebook = get_option('ahed_facebook');
$ahed_twitter = get_option('ahed_twitter');
$ahed_phone = get_option('ahed_phone');
?>


<div class="footer">
    <div class="line-foo">
        <div class="container" style="padding-left: 0px;
             padding-right: 0px;">
            <ul class="social">

                <li>
                    <a href="<?php echo $ahed_facebook; ?>" class="FACEBOOK">
                        <h3>OUR FACEBOOK PAGE</h3>
                        Like us on facebook and join the conversation
                    </a>
                </li>
                <li>

                    <a href="<?php echo $ahed_twitter; ?>" class="TWITTER">
                        <h3>OUR TWITTER</h3>
                        Follow us on twitter to get latest updates
                    </a>
                </li>
                <li>
                    <a href="<?php echo get_permalink(19)?>" class="FACEBOOK">
                        <h3>WRITE US</h3>
                        Register to get th Latest Best Travel Deals
                    </a>
                </li>
            </ul>
        </div>
    </div>


    <div class="bottom-footer">
        <div class="container">
            <div class="row">
                <div class="col-sm-3 ">
                    <h4>Destination Essentials</h4>
                    <ul>
                        <?php
                        $listCategoriesFlight = DealFlight::getAllFightLimit(DealFlight::DEAL,0, 5);
                        //print_r($listCategoriesFlight);
                        foreach ($listCategoriesFlight as $flight) {
                            ?>
                            <li><a href="<?php echo get_site_url(); ?>/travel-deals?cat=<?php echo $flight->category_id; ?>"><?php echo $flight->name; ?></a></li>
                            <?php
                        }
                        ?>

                    </ul>
                </div>
                <div class="col-sm-3 ">
                    <h4>Travel essentials</h4>
                    <ul>
                        <li><a href="<?php echo get_site_url(); ?>/about-us">About us </a></li>
                        <li><a href="<?php echo get_site_url(); ?>/travel-visas">Travel Visa </a></li>
                        <li><a href="<?php echo get_site_url(); ?>/foreign-insuranve">Travel Insuranve </a></li>
                        <li><a href="<?php echo get_site_url(); ?>/testimonial">Testimonials </a></li>
                        <li><a href="<?php echo get_site_url(); ?>/credit-card-auth-form">Credit Card Auth. Form</a></li>
                        <li><a href="<?php echo get_site_url(); ?>/membership-rewards">Membership Rewards</a></li>
                        <li><a href="<?php echo get_site_url(); ?>/contact-us">Contact-us</a></li>
                    </ul>
                </div>
                <div class="col-sm-3 ">
                    <h4>Newsletter</h4>
                    <div class="newletter">
                        Be the first to get our hottest travel
                        deal, tips and advice, straight into
                        your inbox every week!    
                     <div id="status-subscribe"></div>
		    <form class="form-newleter" action="" method="post" id="form_subscribe">			    
			<?php /* <input type="text" placeholder="Name" name="name-subscriber"> */ ?>
			<div><input type="text" placeholder="Email"  name="email-subscriber" class="txt-in text_input"/></div>
			<div><input type="submit" value="Subscribe" class="button txt-but but-letter"></div>
			<span class="progress-bar"></span>
		    </form>
			<?php
			/*
                        <form method="post" onsubmit="return newsletter_check(this);">
                            <div><input  placeholder="Your email"  type="email" name="ne" id="ne" class="txt-in text_input"  required></div>
                            <div><input  type="submit" class="button txt-but but-letter" style="" value="Subscribe "   /></div>
                        </form>
			 * 
			 */?>

                        <?php /* <a href="javascript:void(0)" id="subscribe-email" class="button"
                          login="<?php if (isset($_SESSION['userlogin'])) echo 'yes' ?>">
                          SIGN UP NOW
                          </a>
                         * */ ?>
                        <img src="<?php bloginfo('template_directory') ?>/images/progress_bar.gif" class='progress-img'/>
                        <br>
                        <div class='status-subscribe'></div>
                    </div>
                </div>

                <div class="col-sm-3 ">
                    <h4>Talk to an expert</h4>
                    <ul class="list-con">
                        <li class="con1"><h4><?php echo $ahed_phone; ?></h4>
                            Free within inclusive minutes package
                            on mobile otherwise standard rates
                        </li>
                        <li class="con2"><h4  id="email_quote" >Email quote</h4></li>
                        <?php
                        /*<li class="con3"><h4>Find A Store</h4></li>
                         * 
                         * 
                         */
                        ?>
                        <li class="con4"><h4><a class="class_contact" href="<?php echo get_site_url(); ?>/contact-us"> Book Appointment</a> </h4></li>
                    </ul>
                </div>
            </div>
        </div>
    </div><!--bottom-->



</div><!--footer-->



<?php
/*
 * @author : Tham
 * 
 * Add more file  js for register
 */
?>

<?php /* <script  src="<?php echo get_template_directory_uri(); ?>/js/location.js"></script> */ ?>
<input  type="hidden" value="<?php bloginfo('template_directory') ?>" id="template-dicretory"  name="site_url" />
<input  type="hidden" value="<?php echo get_site_url(); ?>/wp-content/themes/travel_donald/ajax/validate.php" id="url_ajax"  name="url_ajax"/>
<input  type="hidden" value="<?php echo get_site_url(); ?>" id="site_url"  name="site_url" />

<?php /* Thong tin user type ----------------Tham Made */ ?>
<input  type="hidden" value="<?php echo $_SESSION['userlogin']['type_user']; ?>" id="type_user"  name="type_user"/>
<script>
    var templateUrl = "<?php bloginfo('template_directory') ?>";
    var siteUrl = "<?php echo get_site_url() ?>";
    var emailLogin = "<?php echo $_SESSION['userlogin']['email']; ?>";
</script>



<script src="<?php echo get_template_directory_uri(); ?>/js/jquery.datetimepicker.js"></script>
<script src="<?php echo get_template_directory_uri(); ?>/js/jquery.form.js"></script>
<script src="<?php echo get_template_directory_uri(); ?>/js/newsletter.js"></script>
 
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/inc/hashslider-v2.0.js"></script>
<script type="text/javascript">

    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-36251023-1']);
    _gaq.push(['_setDomainName', 'jqueryscript.net']);
    _gaq.push(['_trackPageview']);

    (function() {
        var ga = document.createElement('script');
        ga.type = 'text/javascript';
        ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0];
        s.parentNode.insertBefore(ga, s);
    })();

</script>
<?php
wp_footer();
?>
<script  type="text/javascript"  src="<?php echo get_template_directory_uri(); ?>/js/jquery-ui-1.10.4.custom.js"></script>
<script type="text/javascript" language="javascript" src="<?php bloginfo('template_directory') ?>/js/bootstrap.js"></script>
<script  src="<?php echo get_template_directory_uri(); ?>/js/register.js"></script>
<script  src="<?php echo get_template_directory_uri(); ?>/js/custom.js"></script>
<script  src="<?php echo get_template_directory_uri(); ?>/js/request_a_quote.js"></script>

<script  src="<?php echo get_template_directory_uri(); ?>/js/group_travel_tour.js"></script>
<script  src="<?php echo get_template_directory_uri(); ?>/js/email_qoute.js"></script>
</div><!--footer-->


<div class="modal fade" id="success-request_quote" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel"> Success</h4>
            </div>
            <div class="modal-body">
                <div class="alert alert-success">
                    Thank you for contacting us ,We will get back to you as soon as possible
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>


  <div class="modal fade" id="success-newsltter" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title" id="myModalLabel"> Success</h4>
                    </div>
                    <div class="modal-body">
                        <div class="alert alert-success">
                            Thank you for subscribing to our newsletter
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                    </div>
                </div>
            </div>
  </div>

<?php include_once 'form-model-a-quote.php'; ?>
<script src="<?php echo get_template_directory_uri(); ?>/js/search-state.js"></script>
</html>
